##########################################################################
#	> File Name: makefile
#	> function: 编译arm端工程的Makefile
#	> Author:	卢孙远(Simon)
#	> company: GDOU
#	> Mail: lsy476941913@live.com 
#	> Created Time: 2017年04月28日 星期二 12时33分36秒
##########################################################################
LIBS = $(wildcard ../lib/*)
CC = arm-linux-gcc
BIN = index.bin

CPPFLAGS += -I ../include
CPPFLAGS += -I ../include/libxml2
LDFLAGS  += -L ../lib

LDFLAGS += -lxml2
LDFLAGS += -lasound
LDFLAGS += -lz
LDFLAGS += -lvnet 
LDFLAGS += -lpthread

LDFLAGS += -Wl,-rpath=. -Wl,-rpath=../lib

$(BIN):index.c \
		com_file_opt.c \
		lcd_opt.c 		\
		com_net_opt.c \
		ts_opt.c \
		xml_opt.c \
		signal_opt.c \
		show_bmp.c \
		show_jpg.c \
		$(LIBS)
	$(CC) $^ -o ../bin/$@ $(CPPFLAGS) $(LDFLAGS) -Wall